#!/bin/bash
XINFERENCE_MODEL_SRC=modelscope XINFERENCE_HOME=/xinference/xinference_cache xinference-local -H 0.0.0.0 &
while true; do
  if curl -s "http://localhost:9997" > /dev/null; then
    break
  else
    sleep 1
  fi
done

xinference launch --model-engine vllm --model-name QvQ-72B-Preview --size-in-billions 72 --model-format pytorch --model_path "/home/corex/wj/QVQ-72B-Preview/" --n-gpu 8 --replica 2 --max_model_len $[1024*8] --trust-remote-code 1

PID1=$!
wait $PID1
wait


